package com.snowy.hidden.exception;

import com.snowy.framework.common.base.dto.BaseReturn;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 认证错误枚举
 * @author hjl
 */
@Getter
@AllArgsConstructor
public enum AuthErrorEnum implements BaseReturn {
    LOGIN_DISABLE_ERR("20001", "登录失败，当前用户已禁用"),
    NO_PHONE_ERR("20002", "手机号不能为空"),
    NO_LOGIN_SMS_CODE_ERR("20003", "验证码不能为空"),
    NO_THIRD_CODE_ERR("20004", "授权码不能为空"),
    USER_ERR("20005", "未取到用户信息"),
    NO_THIRD_ASSTOKEN("20006", "未取到三方授权accessToken"),
    NO_THIRD_OPEN_ID("20007", "未取到三方openid"),
    NO_THIRD_USERINFO("20008", "未取到三方用户信息"),
    LOGIN_TIMEOUT_ERR("20009", "登录失效"),
    VALIDATE_ERR("20010", "权限认证失败"),
    NO_USER_INFO("20011", "用户名或密码错误"),
    OLD_PASSWORD_ERROR("20020", "旧密码是错误的"),
    USER_NO_RELATION_BUSINESS("20030", "用户未关联商家信息"),
    REITERATED_USER("20031", "重复的用户"),
    DISTRIBUTOR_INFO_STATUS_WRONG("DIS002", "分销商未审核通过,暂无法登录"),
    ACCOUNT_CODE_EXIST ("20060","账号编码已存在，请重新生成！"),
    PASSWORD_ERROR("20050", "密码错误"),
    NO_ACCOUNT_URL("20070", "未取到添加分销商登录账号地址"),
    ERROR_ACCOUNT_URL("20080", "分销商账号注册失败"),
    ERROR_APPLY_AMOUNT("20040", "提现金额异常"),
    ;

    /**
     * 返回状态码
     */
    private String returnCode;
    /**
     * 返回信息
     */
    private String returnMsg;

}
